/**
 * com.cnhis.cloudhealth.base.dao.SysParametersDao.java
 */
package com.cnhis.cloudhealth.clinical.medical.base.dao;

import com.cnhis.cloudhealth.clinical.medical.base.mapper.MsysUserparameters;
import com.cnhis.cloudhealth.commons.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author zb-csw
 * @version V1.0
 * @Title: MsysUserparametersDao
 * @Package
 * @Description: (科室级参数)
 * @date 2017/10/30 14:49
 */
@Repository
public class MsysUserparametersDao extends BaseDao {

    /**
     * @param param
     * @return java.util.List<com.cnhis.cloudhealth.clinical.medical.base.mapper.MsysUserparameters>
     * @throws
     * @Title: findUserParameters
     * @Description: （根据当前科室与参数ids查询集合）
     * @author chengshaowei
     * @date 2017/10/30
     */
    public List<MsysUserparameters> findUserParameters(Map<String, Object> param) {
        return getSqlSession().selectList("m_sys_userparameters.findUserParameters", param);
    }

    /**
     * @param list
     * @return void
     * @throws
     * @Title: batchinsertByVo
     * @Description: （批量保存科室级参数）
     * @author chengshaowei
     * @date 2017/10/30
     */
    public void batchinsertByVo(List<MsysUserparameters> list) throws Exception {
        getSqlSession().insert("m_sys_userparameters.batchinsertByVo", list);
    }

    /**
     * @param list
     * @return void
     * @throws
     * @Title: batchupdateByVoNotNull
     * @Description: （批量修改科室级参数）
     * @author chengshaowei
     * @date 2017/10/30
     */
    public void batchupdateByVoNotNull(List<MsysUserparameters> list) throws Exception {
        getSqlSession().update("m_sys_userparameters.batchupdateByVoNotNull", list);
    }
}
